﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SaleManagement.Entity;
using System.Linq.Expressions;

namespace SaleManagement.Repository.Interfaces
{
  public  interface IProductDetailRepository:IDisposable
    {
        IQueryable<ProductDetail> All { get; }
        IQueryable<ProductDetail> AllIncluding(params Expression<Func<ProductDetail, object>>[] includeProperties);
        ProductDetail Find(int id);
        void InsertOrUpdate(ProductDetail entity);
        void Delete(int id);
        void Save();
    }
}
